package com.qf.main.login.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
@author chengqiang
@Create 2024-01-19-19:09
@Description:
*/

/**
 * 权限表
 */
// @ApiModel(description = "权限表")
@Data
@TableName(value = "sys_permission")
public class SysPermission {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    // @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 权限名称
     */
    @TableField(value = "permission_name")
    // @ApiModelProperty(value = "权限名称")
    private String permissionName;

    /**
     * 权限描述
     */
    @TableField(value = "permission_desc")
    // @ApiModelProperty(value = "权限描述")
    private String permissionDesc;

    /**
     * 父权限id
     */
    @TableField(value = "parent_id")
    // @ApiModelProperty(value = "父权限id")
    private Integer parentId;

    /**
     * 级别
     */
    @TableField(value = "permission_level")
    // @ApiModelProperty(value = "级别")
    private Integer permissionLevel;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    // @ApiModelProperty(value = "创建时间")
    private Date createDate;

    /**
     * 1时间 0正常
     */
    @TableField(value = "del_status")
    @TableLogic
    // @ApiModelProperty(value = "1时间 0正常")
    private Integer delStatus;

    public static final String COL_ID = "id";

    public static final String COL_PERMISSION_NAME = "permission_name";

    public static final String COL_PERMISSION_DESC = "permission_desc";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_PERMISSION_LEVEL = "permission_level";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_DEL_STATUS = "del_status";
}
